package com.bosssoft.trainee.nontax.common;

/**
 * @author liuqiang
 * @date 2022/6/18 11:29
 * 返回提示
 */
public class CodeMsg {

    private final int retCode;
    private String message;
    // 按照模块定义CodeMsg
    // 业务异常
    public static final CodeMsg USER_NOT_EXSIST = new CodeMsg(500102, "用户不存在");
    public static final CodeMsg USER_OR_PASS_ERROR = new CodeMsg(500102, "账号或者密码错误，请重试！");
    public static final CodeMsg DATA_REFERENCED = new CodeMsg(500103, "数据被引用删除失败");
    public static final CodeMsg ROLE_NOT_EXSIST = new CodeMsg(50012, "角色不存在");


    private CodeMsg(int retCode, String message) {
        this.retCode = retCode;
        this.message = message;
    }

    public int getRetCode() {
        return retCode;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

}
